def gen_soft_model():
    """
    激活虚拟环境： soft-env\Scripts\activate (非 PowerShell)
    """
    cmd1 = "python manage.py inspectdb 表名"  # 没生成文件，应该时要加上 > 文件名
    cmd2 = "python manage.py inspectdb > app名/models.py"
    # ValueError: Unable to configure handler 'mail_admins' # pycharm 改template目录名为templates时，给代码里也改了，操！
    # # Unable to inspect table 'soft/models.py'
    # RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
    # pip install cryptography
    cmd3 = "python manage.py inspectdb 表名 > app名/models.py"
    return {
        "当前目录下": cmd1,
        "app名，目录下，生成所有表": cmd2,
        "app名，目录下,生成一张表": cmd3
    }
